package com.xiexie.seckill.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
@AllArgsConstructor
public enum RespBeanEnum {

    // 通用
    SUCCESS(200, "SUCCESS"),
    ERROR(500, "服务端异常"),

    // 秒杀
    EMPTY_STOCK(500500, "库存不足"),
    REPEAT_ERROR(500501, "该商品没人限购一件"),

    // 登录
    BIND_ERROR(500212, "参数校验异常"),
    MOBILE_ERROR(500211, "手机号码不正确"),
    MOBILE_NOT_FIND_ERROR(500213, "手机号码不存在"),
    PASSWORD_UPDATE_FAIL(500214, "更新密码失败"),
    LOGIN_ERROR(500210, "用户名或者密码不正确");

    private final Integer code;
    private final String message;
}
